package com.example.newspublish.pojo.form;

import lombok.Data;

import java.io.Serializable;

@Data
public class NewsForm implements Serializable {

    private Long categoryId;

    private String author;

    private String title;

    private String coverImage;

    private String content;


    public NewsForm(Long categoryId, String author, String title, String coverImage, String content) {
        this.categoryId = categoryId;
        this.author = author;
        this.title = title;
        this.coverImage = coverImage;
        this.content = content;
    }

    public NewsForm() {

    }
}
